// misc.cpp
#include "misc.h"

const char* STDEXAPI_Version()
{
    static char ls_szVer[100] = CPPSTDEXAPI_VERSION;
#ifdef WINDOWS
    sprintf(ls_szVer, "%s-win%d", CPPSTDEXAPI_VERSION, COMMON_CPU_BIT);
#endif
#ifdef LINUX
    strcat(ls_szVer, "-linux");
#endif
    return ls_szVer;
}

U8 STDEXAPI_IsLE()
{
    U16 a = 1;
    U8* p = (U8*)&a;
    return *p;
}
